package xyz.bali16.module.blog.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xyz.bali16.module.blog.utils.PageUtils;
import xyz.bali16.module.blog.entity.Category;
import xyz.bali16.module.blog.mapper.CategoryMapper;
import xyz.bali16.module.blog.model.vo.blog.CategoryConditionVo;
import xyz.bali16.module.blog.model.vo.blog.CategoryVo;
import xyz.bali16.module.blog.service.CategoryService;

import java.util.List;
import java.util.Map;


@Service("CategoryService")
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements CategoryService {

	@Autowired
	private CategoryMapper categoryMapper;
	@Override
	public PageUtils findByCondition(IPage<Category> page, CategoryConditionVo categoryVo) {
		return null;
	}


	/**
	 * 查询标签详情
	 *
	 * @return
	 */
	@Override
	public List<CategoryVo> queryCategoryDetails() {
		return this.categoryMapper.queryCategoryDetails();
	}

	/**
	 * 查询单条标签详情
	 *
	 * @return
	 */
	@Override
	public CategoryVo queryOneCategoryDetail(Long categoryId) {
		return this.categoryMapper.queryOneCategoryDetail(categoryId);
	}

}

